home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950929-19951130
/
000162_news@columbia.edu_Fri Oct 20 17:10:16 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA25323
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sat, 21 Oct 1995 08:36:24 -0400
Received: by apakabar.cc.columbia.edu id AA20766
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sat, 21 Oct 1995 08:36:22 -0400
Path: news.columbia.edu!sol.ctr.columbia.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!tank.news.pipex.net!pipex!oleane!calvacom!newsmaster
From: do11@calvacom.fr (Dominique Ottello)
Newsgroups: comp.protocols.kermit.misc
Subject: Is there a bug in fonction \Fcode(Char)
Date: 20 Oct 1995 17:10:16 GMT
Organization: CalvaNet. French IP Provider.
Lines: 46
Message-Id: <468l5o$sai@midgard.calvacom.fr>
Nntp-Posting-Host: ppp1-5.calvacom.fr
Mime-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
X-Newsreader: WinVN 0.99.6
Apparently-To: kermit.misc@watsun.cc.columbia.edu
Hello from France.
I think there is a bug into Kermit MS-DOS Version 3.14
The fonction \Fcode(Char) return the value 150 for a space as for u-circomflex
I try this :
define line == SERIAL NUMBER : D00536 ==
;
; Search for position of (:) into Line
assign Begin \Findex(:,\m(Ligne),1)
increment Begin
;
; Extract substring beginning after (:) to the end of Line into SN2End
assign SN2End \Fsubstr(\m(Line),\m(Begin),)
;
define \%n 1
:Bcl
assign Tmp \Fsubstr(\m(SN2End),\%n,1)
;
assign Ascii \Fcode(\m(Tmp))
echo {Char=\m(Tmp) Code=\m(Ascii)}
;
; Test if the character is a Space
if = \m(Ascii) 32 goto LenOK
increment \%n
goto Bcl
;
:LenOK
decrement \%n
assign SN \Fsubstr(\m(SN2End),1,\%n)
echo Line=\M(Line)
echo {SN extracted from Line=\m(SN)}
There are spaces after D00536 into variable Line,
but the fonction \Fcode(\m(Tmp)) always return 150 when Tmp is a space.
So, I am not able to test where ends the serial number.
Is there a patch to correct this problem ?
Or is there any possibility to do this test another way ?
Best Regards
Dominique Ottello
do11@calvacom.fr